package org.dromara.demo.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.demo.domain.JsExample;
import org.dromara.demo.domain.JsExecute;
import org.dromara.demo.domain.vo.JsExecuteVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.List;

/**
 * executeMapper接口
 *
 * @author zhu
 * @date 2025-01-02
 */
public interface JsExecuteMapper extends BaseMapperPlus<JsExecute, JsExecuteVo> {
    @Override
    @DataPermission({
        @DataColumn(key = "deptName", value = "create_dept"),
        @DataColumn(key = "userName", value = "create_by")
    })
    List<JsExecute> selectList(IPage<JsExecute> page, @Param("ew") Wrapper<JsExecute> queryWrapper);
}
